package com.example.drawtexttobitmap;

import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

public class MainActivity extends AppCompatActivity {

    private ImageView image;
    private DrawText drawText;
    private ImageView imageView;
    private PhotoFrameView frame;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        frame = (PhotoFrameView) findViewById(R.id.image);
        imageView = (ImageView) findViewById(R.id.iv);
        frame.setBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.timg));
    }


    public void shotView(View view) {

        frame.rotationBitmap();

    }

    public void HHH(View view) {
        imageView.setImageBitmap(frame.createBitmap());
    }
}
